import typing as t

from flask import Flask
from werkzeug.routing import BaseConverter

app = Flask(__name__)

class LiConverter(BaseConverter):
    def to_python(self, value: str) -> t.Any:
        return value.split('+')

app.url_map.converters['li'] = LiConverter


@app.route('/')
def index():
    return 'Hello World!!'

@app.route('/user/<li:info>')
def user_info(info):
    print(info)
    return f'接收到的手机号是:{info}'

if __name__ == '__main__':
    app.run(debug=True)